home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8150 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  40 lines

  1. Path: pioneer.uspto.gov!schubert
  2. From: Max Schubert <schubert@pioneer.uspto.gov>
  3. Newsgroups: comp.lang.c
  4. Subject: Newbie doesn't understand compiler error
  5. Date: Fri, 1 Mar 1996 15:37:02 -0500
  6. Organization: United States Patent and Trademark Office
  7. Message-ID: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov>
  8. NNTP-Posting-Host: pioneer.uspto.gov
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. I have just started to work with two different learning C books.  They 
  13. both have programs to copy and compile as I go along.  Twice I have 
  14. received this error from cc when attempting to compile two separate
  15. programs on SunOS 4.1.2:
  16.  
  17. #include <stdio.h>
  18.  
  19. void do_heading(char *filename);
  20.  
  21. int line, page;
  22.  
  23. main( int argv, char *argc[] )  <<- Compiler states "Syntax error at or near
  24. {                    word type char."
  25.  
  26. Do I need to update my compiler?
  27.  
  28.     ANY help would be greatly appreciated.
  29.         
  30.                         Thanks,
  31.                             Max
  32.  
  33. -------------------------------------------------------------------------------
  34. Max Schubert                           U.S. Patent and Trademark Office
  35. STAR Database Administrator                    schubert@uspto.gov or
  36. Scientific and Technical Information Center    schubert@pioneer.uspto.gov
  37. -------------------------------------------------------------------------------
  38.  
  39.  
  40.